package com.zer0.tga.math;


public class Coordinate{

	public Coordinate()
	{
		setCoordinate(0,0);
	}
	
	
	public Coordinate(int x, int y)
	{
		setCoordinate(x,y);
	}
	
	public int x;
	public int y;
	
	
	public Coordinate getNorthCoordinate()
	{
		return new Coordinate(this.x,this.y-1);
	}
	
	public Coordinate getSouthCoordinate()
	{
		return new Coordinate(this.x,this.y+1);
	}
	
	public Coordinate getWestCoordinate()
	{
		return new Coordinate(this.x-1,this.y);
	}
	
	public Coordinate getEastCoordinate()
	{
		return new Coordinate(this.x+1,this.y);
	}
	
	public void setCoordinate(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
	



}
